package cn.edu.sdjzu.xg.bysj.domain;

import lombok.*;

import java.io.Serializable;
@Setter
@Getter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public final class School implements Comparable<School>, Serializable {
	private Integer id;
	private String no;
	private String description;
	private String remarks;


	public School(String description, String no, String remarks) {
		super();
		this.description = description;
		this.no = no;
		this.remarks = remarks;
	}


	@Override
	public int compareTo(School other) {
		// no为排序依据
		return this.no.compareTo(other.no);
	}
}
